package org.road0329.tools.proto_parse_tool.chargingpile.busi;

import org.road0329.tools.proto_parse_tool.chargingpile.comm.PileBase;

import java.math.BigDecimal;

/**
 * 鉴权下行：二维码充电、远程充电
 */
public class AuthDown extends PileBase {
    /**用户编码 */
    private Integer userId;
    /*物理卡号：16位编码*/
    private String cardNo;
    /*启动方式：1)刷卡启动，2)二维码启动 3)接口启动*/
    private Short startWay;
    /*账户余额:2位小数*/
    private BigDecimal balance;
    /*鉴权成功标志:0)鉴权失败，1)鉴权成功*/
    private boolean isSuccess;
    /*鉴权失败原因:0000)鉴权成功...*/
    private int errorCode;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public Short getStartWay() {
        return startWay;
    }

    public void setStartWay(Short startWay) {
        this.startWay = startWay;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public boolean isSuccess() {
        return isSuccess;
    }

    public void setSuccess(boolean success) {
        isSuccess = success;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }
}
